<template>
	<div class="main" style="background: #fff;">

		<div class="paydhWrap">
			<go-back aa='../teachers/teaindex'></go-back>
			<h2 @click="commonJs.gosto('../teachers/teaindex')">购买激活服务</h2>
			<div class="paydhBox">
				<div class="dh">
					<input type="text" placeholder="请输入兑换码">
				</div>
			</div>

			<div class="paydhBot">
				<span class="pay1sp">开通</span>
				
			</div>
		</div>

	</div>
</template>
<script>
	import ls from 'store2';
	import axios1 from '~/plugins/axios1'

	import {
		format
	} from '~/plugins/filter';
	import goBack from '~/components/goBack'
	export default {
		head: {
			title: '支付'
		},
		components: {
			goBack
		},
		data() {
			return {
				showNext: false,
				userType: ls.get('userData').userType,
			}
		},
		created() {
			this.commonJs.gologins();
		},
		mounted: function() {
			if (this.commonJs.isTerminal() == 'isAndroid') {
				if (window.history && window.history.pushState) {
					history.pushState(null, null, document.URL);
					window.addEventListener('popstate', this.fun, false); //false阻止默认事件 
				}
			}
		},
		destroyed() {
			window.removeEventListener('popstate', this.fun, false); //false阻止默认事件
		},
		watch: {

		},

		methods: {

			fun() {
				this.$router.replace({
					path: '../teachers/teaindex'

				})

			},




		},
		beforeDestroy() {

		}

	}
</script>

<style scoped lang="less">
	.paydhWrap {
		width: 7.5rem;
		height: 100vh;
		background: #fff;
			h2 {
			padding: 0 0.3rem;
			box-sizing: border-box;
			display: block;
			height: 0.8rem;
			font-size: 0.44rem;
		
			font-weight: bold;
			color: rgba(34, 34, 34, 1);
			line-height: 0.8rem;
		}
		.paydhBox {
			width: 100%;
			height: auto;
			padding: 0 0.3rem;
			box-sizing: border-box;
			margin-top:0.3rem; 
			.dh{
				width: 100%;
				height: 1rem;
				// background: yellow;
				input{
					width:100%;
					height:1rem;
					background:rgba(250,250,250,1);
					border-radius:0.1rem;
					border:1px solid rgba(238,238,238,1);
					outline: none;
					padding: 0.2rem 0.3rem;
					box-sizing: border-box;
					font-size: 0.3rem;
					font-weight: bold;
				}
			}
		}
		.paydhBot{
			width: 100%;
			height: 0.9rem;
			padding: 0 0.3rem;
			margin-top: 0.3rem;
			.pay1sp{
				width: 3.2rem;
				height: 1rem;
				background:rgba(108,191,32,1);
				box-shadow:0px 0.1rem 0.2rem -0.1rem rgba(108,191,32,0.5);
				border-radius:0.1rem;
				margin: 0.5rem auto;
				display: block;

				font-size:0.3rem;

				font-weight:600;
				color:rgba(255,255,255,1);
				line-height:1rem;
				text-align: center;
			}
		
		}
	}
</style>
